package trader.hibernate.dto;
// Generated Nov 9, 2012 4:30:38 PM by Hibernate Tools 3.2.1.GA


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * ProcessingInstruction generated by hbm2java
 */
@Entity
@Table(name="processing_instruction"
    ,catalog="wstrader"
    , uniqueConstraints = @UniqueConstraint(columnNames="ref_number") 
)
public class ProcessingInstruction  implements java.io.Serializable {


     private Integer id;
     private String refNumber;
     private Byte type;
     private Date date;
     private Date time;
     private Short supplierId;
     private String supplierRef;
     private Short buyerId;
     private String buyerRef;
     private Short weightControllerId;
     private Integer qualityControllerId;
     private Integer contractId;
     private Short gradeId;
     private Short packingId;
     private Short noOfBags;
     private Float tons;
     private Date fromDate;
     private Date toDate;
     private String description;
     private String remark;
     private Short status;
     private Date completedDate;
     private Short userId;
     private Float weightLoss;

    public ProcessingInstruction() {
    }

    public ProcessingInstruction(String refNumber, Byte type, Date date, Date time, Short supplierId, String supplierRef, Short buyerId, String buyerRef, Short weightControllerId, Integer qualityControllerId, Integer contractId, Short gradeId, Short packingId, Short noOfBags, Float tons, Date fromDate, Date toDate, String description, String remark, Short status, Date completedDate, Short userId, Float weightLoss) {
       this.refNumber = refNumber;
       this.type = type;
       this.date = date;
       this.time = time;
       this.supplierId = supplierId;
       this.supplierRef = supplierRef;
       this.buyerId = buyerId;
       this.buyerRef = buyerRef;
       this.weightControllerId = weightControllerId;
       this.qualityControllerId = qualityControllerId;
       this.contractId = contractId;
       this.gradeId = gradeId;
       this.packingId = packingId;
       this.noOfBags = noOfBags;
       this.tons = tons;
       this.fromDate = fromDate;
       this.toDate = toDate;
       this.description = description;
       this.remark = remark;
       this.status = status;
       this.completedDate = completedDate;
       this.userId = userId;
       this.weightLoss = weightLoss;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id", unique=true, nullable=false)
    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="ref_number", unique=true, length=20)
    public String getRefNumber() {
        return this.refNumber;
    }
    
    public void setRefNumber(String refNumber) {
        this.refNumber = refNumber;
    }
    
    @Column(name="type")
    public Byte getType() {
        return this.type;
    }
    
    public void setType(Byte type) {
        this.type = type;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="date", length=10)
    public Date getDate() {
        return this.date;
    }
    
    public void setDate(Date date) {
        this.date = date;
    }
    @Temporal(TemporalType.TIME)
    @Column(name="time", length=8)
    public Date getTime() {
        return this.time;
    }
    
    public void setTime(Date time) {
        this.time = time;
    }
    
    @Column(name="supplier_id")
    public Short getSupplierId() {
        return this.supplierId;
    }
    
    public void setSupplierId(Short supplierId) {
        this.supplierId = supplierId;
    }
    
    @Column(name="supplier_ref", length=20)
    public String getSupplierRef() {
        return this.supplierRef;
    }
    
    public void setSupplierRef(String supplierRef) {
        this.supplierRef = supplierRef;
    }
    
    @Column(name="buyer_id")
    public Short getBuyerId() {
        return this.buyerId;
    }
    
    public void setBuyerId(Short buyerId) {
        this.buyerId = buyerId;
    }
    
    @Column(name="buyer_ref", length=20)
    public String getBuyerRef() {
        return this.buyerRef;
    }
    
    public void setBuyerRef(String buyerRef) {
        this.buyerRef = buyerRef;
    }
    
    @Column(name="weight_controller_id")
    public Short getWeightControllerId() {
        return this.weightControllerId;
    }
    
    public void setWeightControllerId(Short weightControllerId) {
        this.weightControllerId = weightControllerId;
    }
    
    @Column(name="quality_controller_id")
    public Integer getQualityControllerId() {
        return this.qualityControllerId;
    }
    
    public void setQualityControllerId(Integer qualityControllerId) {
        this.qualityControllerId = qualityControllerId;
    }
    
    @Column(name="contract_id")
    public Integer getContractId() {
        return this.contractId;
    }
    
    public void setContractId(Integer contractId) {
        this.contractId = contractId;
    }
    
    @Column(name="grade_id")
    public Short getGradeId() {
        return this.gradeId;
    }
    
    public void setGradeId(Short gradeId) {
        this.gradeId = gradeId;
    }
    
    @Column(name="packing_id")
    public Short getPackingId() {
        return this.packingId;
    }
    
    public void setPackingId(Short packingId) {
        this.packingId = packingId;
    }
    
    @Column(name="no_of_bags")
    public Short getNoOfBags() {
        return this.noOfBags;
    }
    
    public void setNoOfBags(Short noOfBags) {
        this.noOfBags = noOfBags;
    }
    
    @Column(name="tons", precision=9, scale=4)
    public Float getTons() {
        return this.tons;
    }
    
    public void setTons(Float tons) {
        this.tons = tons;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="from_date", length=10)
    public Date getFromDate() {
        return this.fromDate;
    }
    
    public void setFromDate(Date fromDate) {
        this.fromDate = fromDate;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="to_date", length=10)
    public Date getToDate() {
        return this.toDate;
    }
    
    public void setToDate(Date toDate) {
        this.toDate = toDate;
    }
    
    @Column(name="description", length=65535)
    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    @Column(name="remark", length=65535)
    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }
    
    @Column(name="status")
    public Short getStatus() {
        return this.status;
    }
    
    public void setStatus(Short status) {
        this.status = status;
    }
    @Temporal(TemporalType.DATE)
    @Column(name="completed_date", length=10)
    public Date getCompletedDate() {
        return this.completedDate;
    }
    
    public void setCompletedDate(Date completedDate) {
        this.completedDate = completedDate;
    }
    
    @Column(name="user_id")
    public Short getUserId() {
        return this.userId;
    }
    
    public void setUserId(Short userId) {
        this.userId = userId;
    }
    
    @Column(name="weight_loss", precision=9, scale=4)
    public Float getWeightLoss() {
        return this.weightLoss;
    }
    
    public void setWeightLoss(Float weightLoss) {
        this.weightLoss = weightLoss;
    }




}


